import com.sf.aesp.owsp.core.bpm.thread.TaskThreadService;

import java.awt.List;
import java.util.HashMap;
import java.util.Map;

import com.sf.aesp.owsp.common.util.BeanUtils;

public class 场地水灾_事件完结确认{

	public static void name() {
		Map<String, Object> paramVar = TaskThreadService.getVariables();
			Map<String, Object> params = new HashMap<String, Object>();
			String finalLevelDesc = "";
	
			Object hjyxps = paramVar.hjyxps;//预计影响件数
			int hjyxpsValue=Integer.valueOf((String)hjyxps);
			if(hjyxpsValue>10000){
				finalLevelDesc="一级";
			}else if(hjyxpsValue>50000){
				finalLevelDesc="二级";
			}else if(hjyxpsValue>=0){
				finalLevelDesc="三级";
			}
			params.put("sql", "update w_cdwd set f_ycdj='" + finalLevelDesc + "' where id=" + paramVar.businessKey);
			
			scriptImpl.executeSql(params);
	}
		
}
